Skip to content

Tests for scope and concurrency limit#418

Merged
slinkydeveloper merged 5 commits into
mainfrom
scope-tests
Jun 5, 2026
Merged

Tests for scope and concurrency limit#418
slinkydeveloper merged 5 commits into
mainfrom
scope-tests

Conversation

@slinkydeveloper

Copy link
Copy Markdown
Collaborator

No description provided.

@slinkydeveloper

Copy link
Copy Markdown
Collaborator Author

Part of restatedev/restate#4659

}
// Briefly confirm the count stays at `limit`, defending against a slow rule activation
// where all 4 would have started before our first check.
delay(1.seconds)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO This is 100% not right.

@tillrohrmann how can i reliably assert all nodes have the same rule book propagated?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is something we need to expose in the PartitionProcessorStatus and then you can query it via the partition_state table.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll look into it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is soimething we can have for the schema registry in general, would be awesome btw, because i have some other tests that has the same issue: depending on the metadata propagation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope this restatedev/restate#4783 helps.

@github-actions

github-actions Bot commented May 20, 2026

Copy link
Copy Markdown

Test Results

 5 files  ±0   5 suites  ±0   2m 32s ⏱️ +6s
45 tests +2  45 ✅ +2  0 💤 ±0  0 ❌ ±0 
68 runs  +4  68 ✅ +4  0 💤 ±0  0 ❌ ±0 

Results for commit d9551d5. ± Comparison against base commit 5d58ee7.

♻️ This comment has been updated with latest results.

@tillrohrmann

Copy link
Copy Markdown
Contributor

Thanks a lot for adding these tests @slinkydeveloper 🦸. I am going to look into expose the current rule book version as part of the partition state. Then we can use this to wait until all partitions are using the latest rule book.

@tillrohrmann

Copy link
Copy Markdown
Contributor

@slinkydeveloper what's missing to move this PR forward? It would be really great to increase our test coverage of scoped invocations with concurrency limits :-)

@slinkydeveloper slinkydeveloper merged commit eaad807 into main Jun 5, 2026
4 checks passed
@slinkydeveloper slinkydeveloper deleted the scope-tests branch June 5, 2026 14:25
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 5, 2026
@tillrohrmann tillrohrmann linked an issue Jun 8, 2026 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend e2e tests with scoped invocations

2 participants